fix on register()