can not read the last bytes of file