fix trigger on replacing html string