fix a issue when register .