Prevent the grid from reloading twice