Added term.clear() function call.