Fixed a stupid crash