modify some bugs and add a clean for Public_library.