Fixed name of function check_config