fixed issue with serialization option