fixed _where_scope()