Fix bug where could not make requests on scripts