fixed error in manual upload