Fix bug in Legacy.