fix clay generation