Fix bug in handling MaxSpawnRange tag