Minor bug fix

!= should be ==