Added AttributeError while parsing quantities