fix last text section not being read if it is only one character long and not followed by any other section