Fixing default scope not accepting a lambda