Fix segfault in some svg