fix bug with upload with refresh sizes