Fixed errors in Xcode 6.1 issue.