fixed problem generating url