Fixed a bug that prevented previously inserted lines from being recognized. This resulted in all lines in a block being replaced on every run.