refactor fix_mod

fix unreachable condition
use b
Merge pull request #2202 from akuroda/pr_refactor_fix_mod

refactor fix_mod