Fixes infinite loop by incrementing next_col