Remove logs and fixed the url generation