Fix incorrect handling of submodules

The margin did not work for submodules. Now it does. :smile: