Fixed XCode 6.1 Errors