fixed serializing date