insertHTML bug fix