fix date display issues