fix key in chain