VIX-317: Corrected the bug that keeps a the background file open when assigning to different preview windows.