add patch to fixup 'term is empty' problem