Fixed an error when setting spawnpoint type