fix recursive dependency between documents and users