fixed bug in run_moses