fix bug in expression parser that prevents functions to be called in an expression