fix cycle filtering

#483