another bug in url generation