Fix ios 6.1 crash