Fixes spawn glitching bug