Bugfix for automatic serialization creator.