Fix hex registry copying