fix bugs at xcode.