changed shape spawn logic

(maybe fixed crashing)