function in case of broken sysconfig. fix #1074