Fix problem with datetime picker