Fixed Logoutbug