fixed bug in date display