rendering order fixes