fix crash detect