fixes serialization issue