fixed bugs in iterative_region_voting