fixing linking structure