change upload userId and bug fix