fixed some logout thing