fix warnings with ios8