Fix rerender on text insertion