fix serious bugs in embed_func and find_func.
3 files changed