fix variable name in accents function