fix ios 5 issue