restore original file handle id