Making the error comparison stricter