fixed upbutton bug