fixes warnings on Android