Fixing an Xcode warning