Updated deletion code
Fixed a quick bug