bug fix for logged in users group switching