equalize_sampling rate bug in second elif return wrong trace copy