fix library merge