freeze bug when used with invalid filenames. Fixed menubar and toolbar flickering when switching windows.