king bug fix