update file begin pos to 0 from 1 to match origin format