Add handling of wrong formatted properties in generate method