Fix attributes migration