Fix register, update correctly the value