Did you use a wait(1) instruction before creating the entity in the event function?