fixed the upload graph bug