Fix rights in documents