fixed linking form detection bug.