Prevent crash