fix bg problem