Fixes filter bug