fixed a ligation bug