some fix doexec()