More fixes to installfilter.c but it's still buggy.