Variable scope fix
Variable scope fix