fix double script embedding