     openCellField: (type) ->
         grid_focus = Utils.clone @state.grid_focus
         if grid_focus != null and \
-                @state.puzzle.grid[grid_focus.row][grid_focus.col].open
+                @state.puzzle.grid[grid_focus.focus.row][grid_focus.focus.col].open
             grid_focus.field_open = type
             @setState { grid_focus: grid_focus }
     removeCellField: (grid_focus) ->

        if grid_focus != null
            c = String.fromCharCode keyCode
            @props.requestOp Ot.opEditCellValue \
                grid_focus.row, grid_focus.col, "contents", c
            if grid_focus.is_across and grid_focus.col < @width() - 1
                grid_focus.col += 1
            else if (not grid_focus.is_across) and grid_focus.row < @height() - 1
                grid_focus.row += 1
        @setState { grid_focus: grid_focus }

    deleteLetter: (keyCode) ->
        grid_focus = Utils.clone @state.grid_focus
        if grid_focus != null
            grid_focus.cell_field = "none"
            row = grid_focus.row
            col = grid_focus.col
            g = @state.puzzle.grid
            if g[row][col].open and g[row][col].contents != ""
                @props.requestOp Ot.opEditCellValue \
                    grid_focus.row, grid_focus.col, "contents", ""
                if grid_focus.is_across and grid_focus.col > 0
                    grid_focus.col -= 1
                else if (not grid_focus.is_across) and grid_focus.row > 0
                    grid_focus.row -= 1
            else
                if grid_focus.is_across
                    row1 = row

                    grid_cell={@props.grid_row[col]}
                    cell_class={@props.cell_classes[col]}
                    grid_focus={
                        if @props.grid_focus? and @props.grid_focus.focus.col == col then @props.grid_focus else null
                    }
                    onCellFieldKeyPress={(event) => @props.onCellFieldKeyPress(event, col)}
                    onCellClick={(event) => @props.onCellClick(col)}
