Fixing bug for document URI