Fixed an xcode bug