fix paint order