Fixed iOS 6 compatibility
Merge pull request #39 from zachdev/master

Fixed iOS 6 compatibility