Fix bug that causes replacedWith widgets to hide lines