typo in var name fixed