Fixed bug with delete.