fix readlines warning