fixed the calendar placement events