fixing bug when no track is selected