Fixed bug with date displaying