fix installer, and typo in cms_lib.php