Fix exception when logged in as admin user.