double modules issue

To resolve #110
I know. I should have reversed my logic...