minor fix for doexec command