fix segfault and register matchsettings/selection