Fixed bugs of gitupload