Fixed a bug resulting in cages not spawning accordingly