Correct an error on the getDoc