Fixed the crashing. I am a boss.