Fix mI matching

Incorporate the change on `get_stem_position()` from boilerplate-gfd.
Redo mI matching.