bug fix - double slash in reference url generation