fix handling of deleted tracks