Bugfix for spawning of perm objects