predictrms: fixed bug with type='terms'