Bugfixes in project serialization