fixed a bug when defining a new function with no parameters; the lambda calling mechanism is still bugged