Update for iOS 7.  Fixed a few bugs introduced in iOS 7 (argh!).