fix the script tag bug