fixed name equality check