named scope fix