fixes filter bug