Fix for ISSUE-1511

fixed use of '==' for assignment