Modal gets right scope