fixed datetime serialization problem