The counter for setting boostrap tab ids was messed up.