Fixed error in Term.java