Fix comparison which should be a dereference