Fix submodules bugs.

Signed-off-by: Tony Zhang <hitxfd.tony@gmail.com>