fix the problem that cannot run at xcode 6