Fix symbol variable scope