linkTaskManagerChoice: fix using wrong variable