Fixed bug: no active scope.

As discussed in issue #5.