Fixed listing delete code