Bugfix on html content replacing