fix ios8 warning