Xcode warning fix