fix

If there is no active module
Merge pull request #6125 from xpardan/patch-3

fix