         return PaneUtilities
 
     @moveItemTo = ( iTargetPaneIndex ) ->
-        oTargetPane = ( aPanes = _getCurrentPanes() )[ iTargetPaneIndex ] ? aPanes[ aPanes.length - 1 ]
+        oTargetPane = _getPaneAt iTargetPaneIndex
         iItemsLength = oTargetPane.getItems().length
 
         ( oCurrentPane = atom.workspace.getActivePane() )


    _getCurrentPanes = ->
        ( oPane for oPane in atom.workspaceView.getPaneViews() )

        return PaneUtilities

    @saveItems = ->
        oFirstPane = _getPaneAt 0

        for oPane, iPaneIndex in _getCurrentPanes()
            for oItem in oPane.getItems()
                oItem.originalPaneIndex = iPaneIndex
                if iPaneIndex > 0
