fix the broken generator method call (closes #136)