fixed minor logout issue