fix renderer's bug