added check for whether feature had been deleted.