fixed select a library issue