fix broken script