Fixed broken equality method