fixed quit cast connect issue