Fix an incorrect variable usage #2023