Fixed a bug in the Datetime picker