fixed mg not getting called from cc