small date bug fix