Fixed bugs caused by wild <script> tag