Fix comparison of Name class.