fix Issue 8631 - illegal overrides accepted