fix wrong equals