fix Xcode warning