fixed re-upload same doctype