fix return value from filter