fixed small upload bug