Protect of errors