fixed some rendering issues