Fixed bug in get search scopes.
Fixed bug in extract method.