Fixed bug with rendering order.