fixed resultgrid-get-index method