fix upload repeated bug