Fix NSObjectInaccessibleException on ios 5

Attempt to fix #1208 - appears to work here correctly.