bugfix: use == for equality check not =