Fix uninitialized variable error on Android