On the influence of anharmonicity on the isotope effect