fix upload in script