fix: remove oldline and check avail.