fix user document errors