workaround for StaticLayout crash