         
         // Layout the row backgrounds
         
-        visibleRowBackgrounds = layoutLinearElements(grid.rowBackground, grid.backgroundLayer, 
+        visibleRowBackgrounds = layoutLinearElements(grid.rowBackground, backgroundLayer,
             visibleRowBackgrounds, oldVisibleRowIndices, visibleRowIndices, layoutRowBackground);
 
         // Layout the row and column separators. 
         
         const lastRowIndex:int = paddedRowCount - 1;
 
-        visibleRowSeparators = layoutLinearElements(grid.rowSeparator, grid.overlayLayer, 
+        visibleRowSeparators = layoutLinearElements(grid.rowSeparator, overlayLayer, 
             visibleRowSeparators, oldVisibleRowIndices, visibleRowIndices, layoutRowSeparator, lastRowIndex);
         
-        visibleColumnSeparators = layoutLinearElements(grid.columnSeparator, grid.overlayLayer, 
+        visibleColumnSeparators = layoutLinearElements(grid.columnSeparator, overlayLayer, 
             visibleColumnSeparators, oldVisibleColumnIndices, visibleColumnIndices, layoutColumnSeparator, lastVisibleColumnIndex);
         
         // HACK

                gridDimensions.getCellBounds(rowIndex, columnIndex);
            
            layoutGridElementR(indicator, bounds);
            layer.addGridElement(indicator);
            indicator.visible = true;
        }
        

            const bounds:Rectangle = gridDimensions.getCellBounds(rowIndex, columnIndex);
            
            layoutGridElementR(editorIndicator, bounds);
            layer.addElement(editorIndicator);
            editorIndicator.visible = true;
        }
        
