Bug fix - logout