Fix segfault in feature-filtering-algo