const expr bugfix
external function invocation bugfix