Remove write(). writeHtml() is much better.