fix bug where pos could move to before the beginning of the file
1 file changed