Fixed interval error with getEvents