fixed #2059: Fix complication errors on Android.