Minor fix to HRef calculation