fixed empty filter bug