fix to work in xcode 5