fix date picker issue