fix unsafe script