Fix issue of file opened via Finder doesn't always display.