Fixed bug - assignment was used instead of equality