Tested and Fixed error on Xcode 6 beta 7