Fix an issue with serialized attribute