fix issue with processing inserted content