fix ShowWindow bug