fixed crashie code