Change `\'a` onto `{\'a}`, and similar. See [here](https://tex.stackexchange.com/a/57745) for good reasons.