fix render issues