Fix makeAllMusicUnits function