Fixed typo and missing callback in register