fixed local variable warning - platforms