Nyaya: workaround for bad access under ios version smaller 6.0