Fixing crashing bugs due to the use of the wrong FilterParameter subclass