fixed date picker bug