fix killing for window