fix render shape optimization