Fixed minor typo causing AttributeError to be thrown.
Merge pull request #2773 from dhirschfeld/typo-fix

Fixed minor typo causing AttributeError to be thrown.