Fixed a bug in MGM