remove unused function in web__lib.php and fix related to it.