fields.js: cur_grid ref bugfix