fixed active mode does not work in submodules. Closes GH-17