added missing 'break' in checkout_by_peer