fix column number handling