Fix error when no panes are listed