fix library scanning issue