fix some error on Xcode.