Fixes bug in = and !=