fix waitingwnd shows when parent widget not visible