Fixes scope not as lambda