library search

fixed library search function