fix lynch bug