fix aspect ratio after closing file