Probably fixes Class cast exception when serializing appointments