Fixed global scope on libs