Fixed the bug with add to global lib