Fix recursive filter

addresses #4