Fixed the bug causing entries not to be deleted.