Fixed bug with incorrect view in delete method