register bug fixed