Fix named anchor link and class to change position