fix date picker bug