fixing datetime picker