Fixed a legacy error