Bug in lazy function scope fixed.