Then you have another $mdx alias somewhere (which may be local to that file.)

This sort of thing would be a lot easier to help you with if you'd written it yourself. Perhaps you should ask whoever wrote it for help instead.