I have met the problem before.I think you should recompiling LAMMPS after you
modified MBONDDEF. Best Yau