fix lib creation