Fix error on method read_config