Fixing a problem with the filter class where we had an error with any type other than double.