fix broken script array