fix a register issue