Fix crash in loadTracks