pretty date bug fix