Prevent a crash