Fixed an issue about libs management