Fix: `-tag caption` was being inserted into the wrong elements when scrolling is enabled