Fixes rendering issue on native builds.