Topology induced anomalous defect production by crossing a quantum critical point