Need for chainging only if there is a next link

Change-Id: I2d44ce25a8795188b3c2fb98027e76b905a56cc8