Revert "Avoid using text internals"

This reverts commit 9f743c52b90794f379636f2bf320b41cd8905ab8.
Proper positions for first line #167