type filter bug fix