fix auto completion of tags