fix bg
some minor fixes