Fix a segfault in Skins2 interface.