fix cleanup of deleted entry