Fixed redefinition of variable error.