Solve the pb with button enable when the 2nd windows appear before the
first was close