fixed a couple rendering bugs