fix Xcode strange bug