fix for exif state loss