Fix bug stopping reading at 4096

Change fanFilePos from int to long