Fixed a major bug in MiGrep