fixes moduleForModel
replaces factory with name
Merge pull request #480 from fsmanuel/fix_module_for_model

fixes moduleForModel