Fixed a bug in displaying date