Fixed error in Term validation