Fix for chain problem