some rendering fixes