Fixed events time bug