Fixing not-equal operator implementation