fixed issue with the day element flipping back after changing the month or year