Fix for iOS 6

I made a small fix for make this great project works on iOS 6.