fix the links change on resize
fix the links change on resize