Fix cache issue when lib were used in web_ui