the window of "preferences" can not be closed when you click "close" icon first time under certain conditions.