fixed linux crash check