fix to login error that broke setting the type in settings