issue 3118: removed two erroneous assignments by reference
Merge pull request #3119 from getu-lar/bugfix/issue-3118

issue #3118: removed two erroneous assignments by reference