fixed unclosed script