Register bug fixed