fix the register