don't div by 0 during path selection