Bugfix in type creation.