Repairing assignment instead equality