Fix reversed logic in legacy tempo secton detection