Fixing bug in run command