Fixed script tags recognized as dialog target