correc script index