Fixed out of sequence columns not always working and corrected typo in grid example