fix lib settings anvironment