fix get upvalue bug.