fix for bg bug introduced by #75