Fixing bug with initialization of yaml file