Fix improper assignment

Typo found in test