bugfix for datetime picker