Destroy mode updated

fixed search mode with public attribute.