Fixed bug in delete routine