Fixed a crash with resizing walls and platforms.