Fixed lvalue problem with const reference