Fix setting panes over existing panes, and setting a pane that was set before
Merge pull request #15 from ben-ng/fixSetPane

Fix setting panes over existing panes, and setting a pane that was set before