Fix double upload problem.