Fixed crash

Thanks Ely :)