fix render errors