Fix an iOS 5 compatibility issue

Fixes issue introduced in #64