Fix an issue with serialized attribute

Fixes #113