fix grid, fix result crashes