fix Issue 12211 - Assignment expression is not an lvalue
Merge pull request #3306 from 9rnsr/fix12211

Issue 12211 - Assignment expression is not an lvalue