Prevent crash after error