fix upload issue