fix bug where assignment operator used instead of boolean evaluator