fix datetime crash hopefully