fixed calling functions with lambda functions as arguments.