bug with time for creating events