handle deleted columns properly