Fixed getWindowLines