fixed snippet of run-mw.sh