fix bug with other scope.varibales