fixed xcode warning