Fix bugs for appannie_ios