After using `write` the `<div>` ghost is removed