Fix colours to be derived from hierarchy.