fixed lost-line bug