fix fetch script