fixed broken logout