Fix some rendering bugs.