fix xcode6 warning