fixed some errors with display dates