Fix for mgd.