Fix inheritance ordering not being properly updated.