Fixed replaceInsertTags being called statically