Corrected grid row/col preparation.