Fixed some rendering artifacts.