Fixed a bug with activation when modules were reused.

Lifecycle wasn't fully enforced before.