Fix #15, correction for a typo to prevent AttributeError