fix for logout