reset frameNumber when open.