fixed a couple of rendering issues