Fixed loading of yaml file.