BUGFIX: Fix bug introduced in last commit; x and y indices were reversed in stats_RewriteGrids