fix the links change on resize