fix date deserialization