bug fix for url