fix bug for input_filter