Fix getScript errors