Fix recursion of locals.
Prevent strange errors with @at.
Fix test.