Fixed typo in the register variable