Fixed parsing issues for global nested variables