fix bug in month view when moving to the next month which has less days than the current month