Cannot define variable. A variable with name '{0}' has already been defined. To reference a variable from the top-level scope ...