fixes bug in uploader