CONN-1439

Fixed dead store, now writing to correct variable