fix ios 8 issue