Fix crash bug

When a line has less columns than column header, the old version crashes.