Fixed bg bug