fixed some upload errors