Add missing variable assignment
Merge pull request #1635 from ojalehto/fix/add-missing-variable-assignment

Add missing variable assignment