Fixed returning the scope