Error in the error check