modified the error of submod.