Date picker bugfix.