Fixes bug in submodules.