Fixed an error with splitting panes.

Fixes #13.