fix bug in showHTML()