Fix bug in selecting the track for the session