Fixed deleting not working right in the view.