fix library filter bug