Minor bugfix

variable with scope error