fix: restore position in file