fixes logout