Fix BAD_ACCESS crash on iOS6