Patching extremely sneaky bgroup bug