PIM-1927 : fix routing in tree associate script