fix upload issues