Fixed error for logout