Fix bug in defining a variable