Fix register value