Fixed crash when creating new account