fix variable assignment typo