Fixed some shit, now it doesn't crash :D