fixed typo in attribute name and variable name