Fixed a crash (sloppily)