Fixed a bug.

sl was segfaulted when the window is to narrow.