Fix bug of missing libs