fix runtime error
fix sorting of tracks