Fixed filtering script to work by default