Fixing a bug in uploader