fix renderer constructor