Fixed error when uploading a revision