Fixed bug that could cause an orphaned listing to appear