fix some rendering issues