fixed typo in attribute name

also removed debugging code, fixes #563