fixed bug in runCora