Fixing useless error message