CONN-1439: Fixed dead store, now write to correct variable
Merge pull request #945 from christophermay07/CONN-1439

CONN-1439