fix renderer creation to avoid duplicates