Fix package filtering