Possible fix for polylines on Linux and Android.