fix the chain