Fix event date condition