fix deprecated default_scope