Fix product variations creation. Fix failure of metadata assigment.