fixes references href attribute