Fix tryLocal variable