ASSERTing in case of invalid inheritance relation changes