fix to the stupid exceptions caused by pruning