fix bg bug