Fix #43

Reset the position of file-like object