fix track label setting scope variable