Log on and off bug fixes.