fix looping in single-track mode