solved a bug in determining crashes