fix next link problem