Checking where the error is