fix exception error on register page