Fix unsequenced assignment (Bug #3191).
Merge pull request #1228 from vkocheganov:bug_3191