Fixed error check in QuantilFilter