fix window blocking problem