merge duplicate register templates