tag completion: fix off-by-one when completing only one tag