fix the bug of function expose() with no parameters