fix chain problem