another fix for repo transfers. trees with holes can cause problems in the resequencing since db constraints can get in the way when closing the holes