Fixed crash on register page.