Fix end hour for events before than start hour