fix for bgs