Correcting error that causes k-grids not to be processed