fix bugs because of xcode version up