fix date display issue