Bug fixes in termlib when only using one topic