fixed problem where date was lower in current month