fix silly bug: check equal should use ==