Fixed reading of the YML file.