prevent a crash