Correct mod matching

fix #66