Fixed newline issue with terms parsing.