Fix submodule behavior