fixed a bug where the first filter is called and not the right