fix variable name typo
reference object property via array