fixed getupvalue bug