fix issue with crazy date serialization