Fix the loop of tracks