Fixed broken named scopes. Inifinite nests now work.