Fixing potential crashing bugs from wrong FilterParameter used.