Fixed iOS5 crash (because I was using new API not available before iOS6)