fix column counts