Fixed logic for render geometry.