Fix filtering for all expenses queries