Correctly set anchor's id's