fixing up issues with the render