Fix position of frames in text document.
Regression was introduced by rebasing.