Fix can't delete feature layer.