fix Issue 12211 - Assignment expression is not an lvalue