fixed a variable name in detecting mentions issue