fixed the register