Fixed horizontal scrolling bug.

Closes #26.