fixed can't show preference windows twice issue