fixing some rendering code