fixed a type warning in xcode 6