fix render error