Set background properties in the right order.