Fix for Issue #41 (dragging files into the window ruins things)