bug fix

repeated overwriting of lines now works properly