Fix comparison which always returned false