Fixed a bug on feature search and deletion in the model.