legacy ERROR fix