fixed warnings on XCode5