Fixed createfromyaml