fixed script processing