another date bug fix