fix bg type