problems in ChooseBaseDOcument