fix column extraction