Fix log message clearing and overlaps.