Fix bugs when changing the logged in user.