Fixing runnig scripts