edit for ios8
add GAI and fix but