fix variant header copy constructor