fixing issue with lvalue/assignment