fix caching of not visible lines