Fix bug renderUrl