Try looking at the flags for a permanent gameobject already spawned and see if the flags are different from the ones you spawned and change them