Fixed alt-tab crashing bug when downsampling