fix_lib_errors