Fixed some issues getting the module class.

Combination of a bad find and replace in an earlier commit, and some
EE weirdness.