modified href.py

fixed some href bugs