fix causal maxfilter bug