Fix default_scope check