fixed asynchronicity but in script sharing