bg bug fix