fix ios 8 compile error