fixed bg bug