fix for scanning $\n, was incrementing the row too