Fixing bug in run file