fix date picker bugs