Removed deprecation warning in XCode5