Fixed bug causing calendar to not display event on correct day