fixed linkage correction bug