fix bug on xcode6