fix bug in process linking data code