fix spurious line clears