Wrong equality check fixed.