fix function name bug, fix upvalue bug.