Fix second pass bug on Android.