Removes useless error messages