Update the code of submodule plugin.