fix file:readlines bug