Adjust the mode relations.