fix upload process