Fix error with empty scope