Fixed register merge issue