typo in variable name fixed