fix for longer than 1 chains