Fix bug introduced previously where a wrong filter gets called