fixing a data corruption issue when changing filters